package zj.it.bhne.gridengineeringsurvey.myutils;

import android.content.Context;
import android.view.View;
import android.widget.EditText;

import com.flyco.dialog.widget.base.BaseDialog;

import zj.it.bhne.gridengineeringsurvey.R;

public class LoginDialog extends BaseDialog<LoginDialog> {

    private Context context;
    private EditText name;
    private EditText pass;

    public LoginDialog(Context context) {
        super(context);
        this.context = context;
    }

    @Override
    public View onCreateView() {
        widthScale(0.85f);
        //填充弹窗布局
        View inflate = View.inflate(context, R.layout.fragment_three_dialog, null);
        name = inflate.findViewById(R.id.equ_ed_dl_name);
        pass = inflate.findViewById(R.id.equ_ed_dl_note);
        return inflate;
    }

    @Override
    public void setUiBeforShow() {
        name.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                //MyUtils.getToast(context,"哈哈");
            }
        });
        pass.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                //MyUtils.getToast(context,"呵呵");
            }
        });
    }
}
